package com.knife.autoconfigure.interfaces;

import com.knife.interfaces.extension.config.AmapKeyProperties;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @author tianhao.luo@hand-china.com
 * @version 1.0
 * @date 2022年01月01日 星期六 9:05 下午
 * @description
 * @since 1.0
 */
@Configuration  // 开启自动装配
@ComponentScan(basePackages = "com.knife.interfaces") // 开启扫描component
@EntityScan(basePackages = "com.knife.interfaces") // 开启扫描JPA实体
@EnableJpaRepositories(basePackages = "com.knife.interfaces") // 开启扫描JPA接口
@EnableConfigurationProperties(value = {AmapKeyProperties.class})
public class KnifeInterfacesAutoConfig {

}
